package com.media.service.impl;

import com.media.bean.UserBean;
import com.media.dao.UserDao;
import com.media.dao.impl.UserDaoImpl;
import com.media.service.UserService;

import java.sql.SQLException;
import java.util.List;

public class UserServiceImpl implements UserService {

    @Override
    public UserBean getUserById(int id) {
        return null;
    }

    @Override
    public UserBean getUserByName(String username) {
        return null;
    }

    @Override
    public List<UserBean> getUserList() {
        return null;
    }

    @Override
    public int addUser(UserBean user) throws SQLException {
        //业务层 负责业务数据处理
        UserDao userDao = new UserDaoImpl();
        return userDao.addUser(user);
    }

    @Override
    public int editUser(UserBean user) {
        return 0;
    }

    @Override
    public int deleteUserById(int id) {
        return 0;
    }
}